package com.mashibing.controller;

import com.mashibing.internalcommon.dto.ResponseResult;
import com.mashibing.internalcommon.request.ApiDriverPointRequest;
import com.mashibing.service.UploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/driverPoint")
public class UploadController {

    @Autowired
    private UploadService uploadService;

    /**
     * 上传轨迹
     *
     * @param apiDriverPointRequest
     * @return
     */
    @PostMapping("/upload")
    public ResponseResult upload(@RequestBody ApiDriverPointRequest apiDriverPointRequest) {
        return uploadService.upload(apiDriverPointRequest);
    }
}
